package org.hagopa.games.moneypool.game.gameobjects;

import java.util.ArrayList;
import java.util.List;

public class Field {
	private int IdOnBoard = 0;
	private Property prop = null;
	private int propOwner = 0;
	private List<Integer> currExistPlayers = new ArrayList<Integer>();
	
	public void appendPlayer(Integer plNo)
	{
		this.currExistPlayers.add(plNo);
	}
	public void removePlayer(Integer plNo)
	{
		this.currExistPlayers.remove(plNo);
	}
	public List<Integer> getPlayersList()
	{
		return this.currExistPlayers;
	}	
	public int getIdOnBoard() {
	
		return IdOnBoard;
	}
	public void setIdOnBoard(int idOnBoard) {
		IdOnBoard = idOnBoard;
	}
	public Property getProp() {
		return prop;
	}
	public void setProp(Property prop) {
		this.prop = prop;
	}
	public int getPropOwner() {
		return propOwner;
	}
	public void setPropOwner(int propOwner) {
		this.propOwner = propOwner;
	}
	public PropertyStatusEnum getPropStatus() {
		return prop.getStatus();
	}
	public void setPropStatus(PropertyStatusEnum propStatus) {
		this.prop.setStatus(propStatus);
	}
	
}
